package com.sl.biz.modular.print.controller;

import com.sl.biz.modular.print.dao.domain.entity.PrintConfigContentDO;
import com.sl.biz.modular.print.service.PrintConfigContentBizService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/print/config/content")
@RequiredArgsConstructor
public class PrintConfigContentController {

    private final PrintConfigContentBizService printConfigContentBizService;

    @PostMapping("/save")
    public Boolean save(@RequestBody PrintConfigContentDO officeRecord) {
        return printConfigContentBizService.save(officeRecord);
    }


    @PostMapping("/get_by_print_id")
    public PrintConfigContentDO getByPrintId(@RequestBody PrintConfigContentDO officeRecordDO) {
        return printConfigContentBizService.getByPrintId(officeRecordDO);
    }
}
